﻿using AiXIu.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXIu.IDAL
{
    /// <summary>
    /// 用户信息数据服务接口
    /// </summary>
    public interface IUserService
    {
        /// <summary>
        /// 通过用户编号查找
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        TBUsers FindByUserId(int userId);

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="profile"></param>
        /// <returns></returns>
        TBUsers EditWithoutAvatar(TBUsers profile);

        /// <summary>
        /// 编辑头像
        /// </summary>
        /// <param name="profile"></param>
        /// <returns></returns>
        TBUsers EditAvatar(TBUsers profile);
    }
}